package ${basePackage}.cli.command;

import cn.hutool.core.io.FileUtil;
import picocli.CommandLine;

import java.io.File;
import java.util.List;

/**
 * 查看生成项目文件列表
 * @author ${author}
 */
@CommandLine.Command(name = "list", description = "查看文件列表", mixinStandardHelpOptions = true)
public class ListCommand implements Runnable {
    @Override
    public void run() {
        // 定义项目路径
        String projectPath = "${fileConfig.inputRootPath}";
        List<File> fileList = FileUtil.loopFiles(new File(projectPath));
        for (File file : fileList) {
            System.out.println(file);
        }
    }
}
